package cn.cvs.service;

import cn.cvs.pojo.TSysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {
    TSysUser login(String username, String password) throws Exception;

//    List<TSysUser> getUserByRoleIdPage(  TSysUser user,Integer pageStart,Integer pageSize);
    List<TSysUser> getUserByRoleIdPage(  String realName,Long roleId,Integer pageStart,Integer pageSize);


    int getUserCount(TSysUser userParam);

    boolean addUser(TSysUser sysUser);

    List<TSysUser> getUserListByPojo(TSysUser param);

    boolean updateUser(TSysUser sysUser);
}
